package com.hsck.order.kds.main.fragment.standard.bean

import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.hsck.order.kds.BR

/**
 * @author isnoam
 * @package_name TestListBean
 * @date 2024-09-29
 * @description：
 */
data class TestListBean(
    var time: String,
    val id: String = "1",
    val number: Int,//商品数量
    val openDialog: Boolean,//是否显示弹窗
) : BaseObservable() {
    @get:Bindable
    var itemSelected = false
        //商品是否有数据选中
        set(value) {
            field = value
            notifyPropertyChanged(BR.itemSelected)
        }

    @get:Bindable
    var selectedNumber = ""
        //商品选中的数量
        set(value) {
            field = value
            notifyPropertyChanged(BR.selectedNumber)
        }

    @get:Bindable
    var remainingNumber = ""
        //商品剩余的数量（总数量-选择的数量=剩余数量）
        set(value) {
            field = value
            notifyPropertyChanged(BR.remainingNumber)
        }

    @get:Bindable
    var totalSum = ""
        //所有商品选中的数量总和
        set(value) {
            field = value
            notifyPropertyChanged(BR.totalSum)
        }

    @get:Bindable
    var timeType = 0
        set(value) {
            field = value
            notifyPropertyChanged(BR.timeType)
        }

}
